import 'package:pigeon/pigeon.dart';

@ConfigurePigeon(PigeonOptions(
  dartOut: './lib_core/lib/bridge/common_bridge.dart',
  dartOptions: DartOptions(),
  javaOut: './android/app/src/main/kotlin/com/sleepingcat/flutter_boost_dart/pigeons/CommonBridge.java',
  javaOptions: JavaOptions(),
  objcHeaderOut: './ios/Runner/Pigeons/CommonBridge.h',
  objcSourceOut: './ios/Runner/Pigeons/CommonBridge.m',
))
@HostApi()
abstract class CommonHostApi {
  // 获取环境配置（dev-开发，test-测试，pre-预生产，prod-生产）
  String requestEnv();

  // 切换生产/预生产（dev-开发，test-测试，pre-预生产，prod-生产）
  void switchPreOnline(String flag);

  // 获取设备唯一ID
  String getDeviceId();

}

@FlutterApi()
abstract class CommonFlutterApi {
  
}
